package com.qf.controller;

import com.qf.classes.Clsses;
import com.qf.service.ClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author H
 * @create 2020-11-03 11:08
 * @strive To be whoever you want to be.
 * @Description:
 */
@RestController
public class ClassController {

    @Autowired
    ClassesService classesService;

    @RequestMapping("/findClassByUserId")
    public List<Clsses> findClassByUserId(@RequestParam("id") Integer id) {

        return classesService.findClassByUserId(id);
    }
}
